package com.iflyun.ui.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;

@Service
public class PersonHystrixService {
	
	


	@Autowired
	PersonService personService; 

	@HystrixCommand(fallbackMethod = "fallbackGetInt") //1
	public String getInt(){
		return personService.getInt();
	}
	
	public String fallbackGetInt(){ 
		return "查询失败";
	}
}
